package com.woniuxy.userassembly.service;

import com.woniuxy.userassembly.dao.UserMapper;
import com.woniuxy.userassembly.model.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.userassembly.model.UserFinance;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-22
 */

public interface IUserService extends IService<User> {

    void registerUser(User user);

    User loginByUsername(String username,String password);

    User checkOnlyTel(String tel);

    int updUser(User user);

    int increaseCredit(Integer credit,Integer userId);

    int cutBackCredit(Integer credit,Integer userId);

    User selUser(Integer userId);

    int changeLevel(Integer level,Integer userId);

    int increaseGrowthValue(Integer growth,Integer userId);

    int addMoney( double balance, int userId);
}
